25. Solution: Disaster Recovery Exercise

ND0063 C1 L3 17 Disaster Recovery Exercise Solution Video

Disaster Recovery

  1. Create an S3 bucket configured to host a website in your "primary" region.
  2. Create a second S3 bucket in a second region. This will be your "standby" region.
  3. Create a CloudFront Web distribution. In the creation wizard, click in the box "Origin Domain Name," and you will see a list of your S3 buckets. Select your "primary" S3 bucket.
  4. Leave the rest of the options as defaulted and click Create Distribution.
  5. Wait for the distribution to be created.

Once your distribution is created:

  1. Select it from the list and click Distribution Settings.
  2. Select the "Origins and Origin Groups" tab.
  3. Click "Create Origin"
  4. Click in "Origin Domain Name" and select your "secondary" S3 bucket and click Create. (the distribution will take some time to update).

Once your distribution is updated:

  1. Select it from the list and click Distribution Settings.
  2. Select the "Origins and Origin Groups" tab.
  3. Click "Create Origin Group"
  4. Add both S3 buckets and click Create.

Once your distribution is updated:

  1. Select it from the list and click Distribution Settings.
  2. Select the Behaviors tab
  3. Select the item and click Edit.
  4. Change "Origin or Origin Group" to the newly create origin group and click "Yes, edit"

When your distribution is finished updating, you will have a CloudFront distribution that will automatically failover between AWS regions.

Completed CloudFront setup: